﻿@model IEnumerable<ShippingRateComputationMethodModel>

@{    
    ViewBag.Title = T("Admin.Configuration.Shipping.Providers").Text;
}
<div class="section-header">
    <div class="title">
        <i class="fa fa-truck"></i>
        @T("Admin.Configuration.Shipping.Providers")
    </div>
	<div class="options">
		@{ 
            Html.RenderWidget("admin_button_toolbar_before");
            Html.Widget("admin_button_toolbar_after");
        }
	</div>
</div>

<div>
	@Html.ProviderList(Model,
	@<div>
		<a style="min-width: 150px" class='btn@(item.IsActive ? " btn-secondary btn-to-danger" : " btn-success")' href='@Url.Action("ActivateProvider", new { systemName = item.SystemName, activate = !item.IsActive })'>
			<span>@T("Admin.Common.{0}".FormatInvariant(item.IsActive ? "Deactivate" : "Activate"))</span>
		</a>
	</div>)
</div>